package Types;

/**
 * Converts different datatypes, including arrays containing certain datatypes.
 * @author Cliff Laschet
 */
public class Convert {
    /**
     * Converts a double array to a complex number array.
     * @param data
     * @return 
     */
    public static Complex[] fromDoubletoComplex(double[] data){
        Complex[] result = new Complex[data.length];
        for(int i = 0; i < data.length; i++){
            result[i] = new Complex(data[i],0);
        }
        return result;
    }
}
